<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Mobile
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */
?>
<?php $_product = $this->getProduct() ?>

<div class="product-image prof">
	<img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(260, 260); ?>" width="260" height="260" alt="<?php echo $this->htmlEscape($_product->getName()) ?>" 	/>
	<div class="product-image-li">
		<div class="photo-num"><a href="#">Photos (<?php echo count($this->getGalleryImages())?>)</a></div>
		<div class="product-video-list"><a href="<?php echo $this->getUrl('video-list') ?>">Video</a></div>
		<div class="clear"></div>
	</div>
</div>
<?php if (count($this->getGalleryImages()) > 0): ?>
<div class="more-views" style="display:none;">
    <h2><?php echo $this->__('More Views') ?></h2>
    <ul>
    <?php foreach ($this->getGalleryImages() as $_image): ?>
        <li>
            <a href="#" onclick="popWin('<?php echo $this->getGalleryUrl($_image) ?>', 'gallery', 'width=300,height=300,left=0,top=0,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>" width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
        </li>
    <?php endforeach; ?>
    </ul>
</div>
<?php endif; ?>